package com.liangsui.mss.component.alipay;

/**
 * AlipayConfig
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/8 16:25
 */
public class AlipayConfig {

    //SHA256withRsa对应支付宝公钥
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlcxnZw8eI26UW6cQs1CywCCNU+POt7kpWoTNKT7F8eeR2G6YKo4wKV1cKm3G8vNvw4WMuvgTi+CqfKXhzzo3JuiFOCy/vdEZCu8n92zs+lbYNIZUNLmXfoWMdZpIVsalq01e+BDWpz2GEV8dvCKcOXyCOaYmZ8GnzyjrAE78cvv7w2eSE+zqe4pcpLmd4DMqho+QSORcm209tJklu5svCV/fHMXmj/rUpYFLnbzmH2Vi6mWfgILukvcQ7b3fJkXOF6vvH+eW2UdQVI2Epge9DexY2RpkdWw8+Dvh5qQVoUBz4Uxjg6j91ZbgtAmo4JfYL5Zxl87bLbNEMAEVdIge6QIDAQAB";

    //签名方式
    public static String sign_type = "RSA2";

    //字码编码格式
    public static String charset = "utf-8";

    // 支付宝支付回调
    public static String notifyUrl = "http://mss.free.idcfengye.com/pay/callback/";


    /**
     * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
     *
     * @param sWord 要写入日志里的文本内容
     */
//	public static void logResult(String sWord) {
//		FileWriter writer = null;
//		try {
//			writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis() + ".txt");
//			writer.write(sWord);
//		} catch (Exception e) {
//			e.printStackTrace();
//		} finally {
//			if (writer != null) {
//				try {
//					writer.close();
//				} catch (IOException e) {
//					e.printStackTrace();
//				}
//			}
//		}
//	}
}
